package lee.lxwei.boot;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.PropertySource;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Repository;

@Slf4j
@EnableAsync
@ServletComponentScan
@SpringBootApplication
@PropertySource(value = "classpath:custom.properties", encoding = "utf-8")
@MapperScan(basePackages = "lee.lxwei.boot.mybatis.mapper", annotationClass = Repository.class)
public class BootApplication {

    public static void main(String[] args) {
        SpringApplication.run(BootApplication.class, args);
        log.info("程序启动成功");
    }

}
